<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
window.testIsAsync = true;
function repaintTest() {
  requestAnimationFrame(function() {
    editor.focus();
    requestAnimationFrame(function() {
      if (window.eventSender)
        eventSender.keyDown('a');
      requestAnimationFrame(function() {
        if (window.eventSender)
          eventSender.keyDown('b');
        requestAnimationFrame(function() {
          if (window.eventSender)
            eventSender.keyDown('c');
          finishRepaintTest();
        });
      });
    });
  });
}
onload = runRepaintAndPixelTest;
</script>
<style>
#editor:after {
  content:"x";
}
</style>
Test passes if caret is visible after the 'c' but before the 'x'.<br>
To reproduce manually, type 'abc'.
<div id="editor" contenteditable="true"></div>
